package com.itheima.edu.info.test;

public class test08 {
    public static void useGetMax(Inter3 inter) {
        System.out.println(inter.getMax(10, 20));
    }

    public static void main(String[] args) {
        useGetMax((int a, int b) -> {
            if (a > b) {
                return a ;
            } else {
                return b ;
            }
        });
    }
}

interface Inter3 {
    int getMax(int a, int b);
}